-- GENERATED SPELL FOR [Brita] --


function spell0_30484(pUnit, Event) --@Aimed Shot,n/a--
pUnit:FullCastSpellOnTarget(60954,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30484', 2500, 1)
end

function spell1_30484(pUnit, Event) --@Disengage,n/a--
pUnit:FullCastSpellOnTarget(60932,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30484', 631, 1)
end

function spell2_30484(pUnit, Event) --@Freezing Trap,Self--
if charge_disp ~= 'na' then
pUnit:FullCastSpellOnTarget(43414,pUnit)
local charge_disp = 'na'
end
pUnit:RegisterEvent('Sorts_30484', 1, 1)
end

function spell3_30484(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(49712,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30484', 587, 1)
end

function spell4_30484(pUnit, Event) --@Wing Clip,n/a--
pUnit:FullCastSpellOnTarget(44286,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30484', 10284, 1)
end

function Sorts_30484(pUnit, Event)
local choix_sorts_30484 = math.random(0, 4)
if choix_sorts_30484 == 0 then
pUnit:RegisterEvent('spell0_30484', 1, 1)
end
if choix_sorts_30484 == 1 then
pUnit:RegisterEvent('spell1_30484', 1, 1)
end
if choix_sorts_30484 == 2 then
pUnit:RegisterEvent('spell2_30484', 1, 1)
end
if choix_sorts_30484 == 3 then
pUnit:RegisterEvent('spell3_30484', 1, 1)
end
if choix_sorts_30484 == 4 then
pUnit:RegisterEvent('spell4_30484', 1, 1)
end
end

function mob30484_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_30484', math.random(1500, 3000), 1)
end

function mob30484_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob30484_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob30484_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(30484, 1, 'mob30484_Action')
RegisterUnitEvent(30484, 2, 'mob30484_Leave')
RegisterUnitEvent(30484, 3, 'mob30484_Kill')
RegisterUnitEvent(30484, 4, 'mob30484_Die')
